# -*- coding: utf-8 -*-

################################################################################
## Form generated from reading UI file 'form.ui'
##
## Created by: Qt User Interface Compiler version 6.9.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
    QMetaObject, QObject, QPoint, QRect,
    QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
    QFont, QFontDatabase, QGradient, QIcon,
    QImage, QKeySequence, QLinearGradient, QPainter,
    QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QCheckBox, QGridLayout, QGroupBox,
    QHBoxLayout, QLabel, QLineEdit, QPlainTextEdit,
    QPushButton, QSizePolicy, QSpacerItem, QTabWidget,
    QVBoxLayout, QWidget)

from matplotlibwidget import MatplotlibWidget

class Ui_Widget(object):
    def setupUi(self, Widget):
        if not Widget.objectName():
            Widget.setObjectName(u"Widget")
        Widget.setWindowModality(Qt.NonModal)
        Widget.resize(1400, 910)
        Widget.setMinimumSize(QSize(1400, 910))
        Widget.setMaximumSize(QSize(1400, 910))
        Widget.setStyleSheet(u"")
        self.tabs = QTabWidget(Widget)
        self.tabs.setObjectName(u"tabs")
        self.tabs.setGeometry(QRect(10, 10, 671, 851))
        self.tab_flat = QWidget()
        self.tab_flat.setObjectName(u"tab_flat")
        self.groupBox_bias = QGroupBox(self.tab_flat)
        self.groupBox_bias.setObjectName(u"groupBox_bias")
        self.groupBox_bias.setGeometry(QRect(10, 190, 651, 121))
        self.groupBox_bias.setAlignment(Qt.AlignCenter)
        self.layoutWidget_2 = QWidget(self.groupBox_bias)
        self.layoutWidget_2.setObjectName(u"layoutWidget_2")
        self.layoutWidget_2.setGeometry(QRect(10, 20, 631, 68))
        self.gridLayout_bias = QGridLayout(self.layoutWidget_2)
        self.gridLayout_bias.setObjectName(u"gridLayout_bias")
        self.gridLayout_bias.setContentsMargins(0, 0, 0, 0)
        self.lineEdit_bias1 = QLineEdit(self.layoutWidget_2)
        self.lineEdit_bias1.setObjectName(u"lineEdit_bias1")

        self.gridLayout_bias.addWidget(self.lineEdit_bias1, 0, 0, 1, 1)

        self.btn_choose_bias1 = QPushButton(self.layoutWidget_2)
        self.btn_choose_bias1.setObjectName(u"btn_choose_bias1")

        self.gridLayout_bias.addWidget(self.btn_choose_bias1, 0, 1, 1, 1)

        self.lineEdit_bias2 = QLineEdit(self.layoutWidget_2)
        self.lineEdit_bias2.setObjectName(u"lineEdit_bias2")

        self.gridLayout_bias.addWidget(self.lineEdit_bias2, 1, 0, 1, 1)

        self.btn_choose_bias2 = QPushButton(self.layoutWidget_2)
        self.btn_choose_bias2.setObjectName(u"btn_choose_bias2")

        self.gridLayout_bias.addWidget(self.btn_choose_bias2, 1, 1, 1, 1)

        self.btn_clearBias = QPushButton(self.groupBox_bias)
        self.btn_clearBias.setObjectName(u"btn_clearBias")
        self.btn_clearBias.setGeometry(QRect(10, 90, 80, 22))
        self.checkBox_showCorrectedBias = QCheckBox(self.groupBox_bias)
        self.checkBox_showCorrectedBias.setObjectName(u"checkBox_showCorrectedBias")
        self.checkBox_showCorrectedBias.setGeometry(QRect(490, 90, 161, 20))
        self.groupBox_flat = QGroupBox(self.tab_flat)
        self.groupBox_flat.setObjectName(u"groupBox_flat")
        self.groupBox_flat.setGeometry(QRect(10, 10, 651, 171))
        self.groupBox_flat.setAlignment(Qt.AlignCenter)
        self.groupBox_flat.setFlat(True)
        self.layoutWidget_3 = QWidget(self.groupBox_flat)
        self.layoutWidget_3.setObjectName(u"layoutWidget_3")
        self.layoutWidget_3.setGeometry(QRect(10, 20, 631, 68))
        self.gridLayout_flat = QGridLayout(self.layoutWidget_3)
        self.gridLayout_flat.setObjectName(u"gridLayout_flat")
        self.gridLayout_flat.setContentsMargins(0, 0, 0, 0)
        self.lineEdit_flat1 = QLineEdit(self.layoutWidget_3)
        self.lineEdit_flat1.setObjectName(u"lineEdit_flat1")
        self.lineEdit_flat1.setAutoFillBackground(False)

        self.gridLayout_flat.addWidget(self.lineEdit_flat1, 0, 0, 1, 1)

        self.btn_choose_flat1 = QPushButton(self.layoutWidget_3)
        self.btn_choose_flat1.setObjectName(u"btn_choose_flat1")

        self.gridLayout_flat.addWidget(self.btn_choose_flat1, 0, 1, 1, 1)

        self.lineEdit_flat2 = QLineEdit(self.layoutWidget_3)
        self.lineEdit_flat2.setObjectName(u"lineEdit_flat2")

        self.gridLayout_flat.addWidget(self.lineEdit_flat2, 1, 0, 1, 1)

        self.btn_choose_flat2 = QPushButton(self.layoutWidget_3)
        self.btn_choose_flat2.setObjectName(u"btn_choose_flat2")

        self.gridLayout_flat.addWidget(self.btn_choose_flat2, 1, 1, 1, 1)

        self.btn_clearFlats = QPushButton(self.groupBox_flat)
        self.btn_clearFlats.setObjectName(u"btn_clearFlats")
        self.btn_clearFlats.setGeometry(QRect(10, 100, 80, 22))
        self.btn_clearFlats.setAutoFillBackground(False)
        self.layoutWidget = QWidget(self.groupBox_flat)
        self.layoutWidget.setObjectName(u"layoutWidget")
        self.layoutWidget.setGeometry(QRect(470, 90, 171, 54))
        self.gridLayout = QGridLayout(self.layoutWidget)
        self.gridLayout.setObjectName(u"gridLayout")
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.lineEdit_flat2ExpTime = QLineEdit(self.layoutWidget)
        self.lineEdit_flat2ExpTime.setObjectName(u"lineEdit_flat2ExpTime")

        self.gridLayout.addWidget(self.lineEdit_flat2ExpTime, 1, 1, 1, 1)

        self.label_2 = QLabel(self.layoutWidget)
        self.label_2.setObjectName(u"label_2")

        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)

        self.label = QLabel(self.layoutWidget)
        self.label.setObjectName(u"label")

        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)

        self.lineEdit_flat1ExpTime = QLineEdit(self.layoutWidget)
        self.lineEdit_flat1ExpTime.setObjectName(u"lineEdit_flat1ExpTime")

        self.gridLayout.addWidget(self.lineEdit_flat1ExpTime, 0, 1, 1, 1)

        self.checkBox_correctExpTime = QCheckBox(self.groupBox_flat)
        self.checkBox_correctExpTime.setObjectName(u"checkBox_correctExpTime")
        self.checkBox_correctExpTime.setGeometry(QRect(500, 150, 122, 20))
        self.layoutWidget1 = QWidget(self.groupBox_flat)
        self.layoutWidget1.setObjectName(u"layoutWidget1")
        self.layoutWidget1.setGeometry(QRect(120, 90, 159, 48))
        self.verticalLayout = QVBoxLayout(self.layoutWidget1)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.checkBox_showCorrectedFlats = QCheckBox(self.layoutWidget1)
        self.checkBox_showCorrectedFlats.setObjectName(u"checkBox_showCorrectedFlats")

        self.verticalLayout.addWidget(self.checkBox_showCorrectedFlats)

        self.checkBox_applyGainCorrection = QCheckBox(self.layoutWidget1)
        self.checkBox_applyGainCorrection.setObjectName(u"checkBox_applyGainCorrection")

        self.verticalLayout.addWidget(self.checkBox_applyGainCorrection)

        self.plainTextEdit_log = QPlainTextEdit(self.tab_flat)
        self.plainTextEdit_log.setObjectName(u"plainTextEdit_log")
        self.plainTextEdit_log.setGeometry(QRect(10, 430, 651, 351))
        self.btn_compare_corrected_flats = QPushButton(self.tab_flat)
        self.btn_compare_corrected_flats.setObjectName(u"btn_compare_corrected_flats")
        self.btn_compare_corrected_flats.setGeometry(QRect(180, 380, 101, 41))
        self.layoutWidget2 = QWidget(self.tab_flat)
        self.layoutWidget2.setObjectName(u"layoutWidget2")
        self.layoutWidget2.setGeometry(QRect(11, 321, 145, 100))
        self.verticalLayout_2 = QVBoxLayout(self.layoutWidget2)
        self.verticalLayout_2.setObjectName(u"verticalLayout_2")
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.checkBox_showFlatRatioFits = QCheckBox(self.layoutWidget2)
        self.checkBox_showFlatRatioFits.setObjectName(u"checkBox_showFlatRatioFits")

        self.verticalLayout_2.addWidget(self.checkBox_showFlatRatioFits)

        self.checkBox_anchorToZero = QCheckBox(self.layoutWidget2)
        self.checkBox_anchorToZero.setObjectName(u"checkBox_anchorToZero")

        self.verticalLayout_2.addWidget(self.checkBox_anchorToZero)

        self.checkBox_applySelfNorm = QCheckBox(self.layoutWidget2)
        self.checkBox_applySelfNorm.setObjectName(u"checkBox_applySelfNorm")

        self.verticalLayout_2.addWidget(self.checkBox_applySelfNorm)

        self.checkBox_plotFlatRatio = QCheckBox(self.layoutWidget2)
        self.checkBox_plotFlatRatio.setObjectName(u"checkBox_plotFlatRatio")

        self.verticalLayout_2.addWidget(self.checkBox_plotFlatRatio)

        self.layoutWidget3 = QWidget(self.tab_flat)
        self.layoutWidget3.setObjectName(u"layoutWidget3")
        self.layoutWidget3.setGeometry(QRect(180, 320, 101, 54))
        self.gridLayout_3 = QGridLayout(self.layoutWidget3)
        self.gridLayout_3.setObjectName(u"gridLayout_3")
        self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
        self.label_ymin = QLabel(self.layoutWidget3)
        self.label_ymin.setObjectName(u"label_ymin")

        self.gridLayout_3.addWidget(self.label_ymin, 1, 0, 1, 2)

        self.lineEdit_yMin = QLineEdit(self.layoutWidget3)
        self.lineEdit_yMin.setObjectName(u"lineEdit_yMin")

        self.gridLayout_3.addWidget(self.lineEdit_yMin, 1, 2, 1, 1)

        self.lineEdit_yMax = QLineEdit(self.layoutWidget3)
        self.lineEdit_yMax.setObjectName(u"lineEdit_yMax")

        self.gridLayout_3.addWidget(self.lineEdit_yMax, 0, 2, 1, 1)

        self.label_ymax = QLabel(self.layoutWidget3)
        self.label_ymax.setObjectName(u"label_ymax")

        self.gridLayout_3.addWidget(self.label_ymax, 0, 0, 1, 2)

        self.btn_clearLog = QPushButton(self.tab_flat)
        self.btn_clearLog.setObjectName(u"btn_clearLog")
        self.btn_clearLog.setGeometry(QRect(580, 790, 80, 21))
        self.btn_estimateGain = QPushButton(self.tab_flat)
        self.btn_estimateGain.setObjectName(u"btn_estimateGain")
        self.btn_estimateGain.setGeometry(QRect(540, 340, 101, 31))
        self.checkBox_useColPreScan = QCheckBox(self.tab_flat)
        self.checkBox_useColPreScan.setObjectName(u"checkBox_useColPreScan")
        self.checkBox_useColPreScan.setGeometry(QRect(320, 330, 111, 19))
        self.tabs.addTab(self.tab_flat, "")
        self.tab_ptc = QWidget()
        self.tab_ptc.setObjectName(u"tab_ptc")
        self.groupBox_2 = QGroupBox(self.tab_ptc)
        self.groupBox_2.setObjectName(u"groupBox_2")
        self.groupBox_2.setGeometry(QRect(10, 0, 651, 351))
        self.label_10 = QLabel(self.groupBox_2)
        self.label_10.setObjectName(u"label_10")
        self.label_10.setGeometry(QRect(10, 310, 631, 31))
        font = QFont()
        font.setBold(True)
        font.setUnderline(True)
        self.label_10.setFont(font)
        self.label_10.setAutoFillBackground(False)
        self.label_10.setStyleSheet(u"background-color: rgb(220, 138, 221);\n"
"color: rgb(224, 27, 36);\n"
"color: rgb(26, 95, 180);")
        self.label_10.setTextFormat(Qt.PlainText)
        self.label_10.setAlignment(Qt.AlignCenter)
        self.layoutWidget4 = QWidget(self.groupBox_2)
        self.layoutWidget4.setObjectName(u"layoutWidget4")
        self.layoutWidget4.setGeometry(QRect(11, 31, 631, 33))
        self.horizontalLayout_2 = QHBoxLayout(self.layoutWidget4)
        self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.lineEdit_5 = QLineEdit(self.layoutWidget4)
        self.lineEdit_5.setObjectName(u"lineEdit_5")

        self.horizontalLayout_2.addWidget(self.lineEdit_5)

        self.pushButton = QPushButton(self.layoutWidget4)
        self.pushButton.setObjectName(u"pushButton")

        self.horizontalLayout_2.addWidget(self.pushButton)

        self.layoutWidget5 = QWidget(self.groupBox_2)
        self.layoutWidget5.setObjectName(u"layoutWidget5")
        self.layoutWidget5.setGeometry(QRect(10, 230, 308, 76))
        self.horizontalLayout_6 = QHBoxLayout(self.layoutWidget5)
        self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
        self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_7 = QVBoxLayout()
        self.verticalLayout_7.setObjectName(u"verticalLayout_7")
        self.checkBox_subtractBias = QCheckBox(self.layoutWidget5)
        self.checkBox_subtractBias.setObjectName(u"checkBox_subtractBias")

        self.verticalLayout_7.addWidget(self.checkBox_subtractBias)

        self.checkBox_applyFlatCorrection = QCheckBox(self.layoutWidget5)
        self.checkBox_applyFlatCorrection.setObjectName(u"checkBox_applyFlatCorrection")

        self.verticalLayout_7.addWidget(self.checkBox_applyFlatCorrection)

        self.checkBox_sigmaClip = QCheckBox(self.layoutWidget5)
        self.checkBox_sigmaClip.setObjectName(u"checkBox_sigmaClip")

        self.verticalLayout_7.addWidget(self.checkBox_sigmaClip)


        self.horizontalLayout_6.addLayout(self.verticalLayout_7)

        self.verticalLayout_8 = QVBoxLayout()
        self.verticalLayout_8.setObjectName(u"verticalLayout_8")
        self.checkBox_exportPTCFigs = QCheckBox(self.layoutWidget5)
        self.checkBox_exportPTCFigs.setObjectName(u"checkBox_exportPTCFigs")

        self.verticalLayout_8.addWidget(self.checkBox_exportPTCFigs)

        self.checkBox_exportPRCFigs = QCheckBox(self.layoutWidget5)
        self.checkBox_exportPRCFigs.setObjectName(u"checkBox_exportPRCFigs")

        self.verticalLayout_8.addWidget(self.checkBox_exportPRCFigs)

        self.checkBox_plotGain = QCheckBox(self.layoutWidget5)
        self.checkBox_plotGain.setObjectName(u"checkBox_plotGain")

        self.verticalLayout_8.addWidget(self.checkBox_plotGain)


        self.horizontalLayout_6.addLayout(self.verticalLayout_8)

        self.layoutWidget6 = QWidget(self.groupBox_2)
        self.layoutWidget6.setObjectName(u"layoutWidget6")
        self.layoutWidget6.setGeometry(QRect(520, 70, 121, 87))
        self.horizontalLayout = QHBoxLayout(self.layoutWidget6)
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5 = QVBoxLayout()
        self.verticalLayout_5.setObjectName(u"verticalLayout_5")
        self.label_6 = QLabel(self.layoutWidget6)
        self.label_6.setObjectName(u"label_6")

        self.verticalLayout_5.addWidget(self.label_6)

        self.label_7 = QLabel(self.layoutWidget6)
        self.label_7.setObjectName(u"label_7")

        self.verticalLayout_5.addWidget(self.label_7)

        self.label_12 = QLabel(self.layoutWidget6)
        self.label_12.setObjectName(u"label_12")

        self.verticalLayout_5.addWidget(self.label_12)


        self.horizontalLayout.addLayout(self.verticalLayout_5)

        self.verticalLayout_6 = QVBoxLayout()
        self.verticalLayout_6.setObjectName(u"verticalLayout_6")
        self.lineEdit_3 = QLineEdit(self.layoutWidget6)
        self.lineEdit_3.setObjectName(u"lineEdit_3")

        self.verticalLayout_6.addWidget(self.lineEdit_3)

        self.lineEdit_4 = QLineEdit(self.layoutWidget6)
        self.lineEdit_4.setObjectName(u"lineEdit_4")

        self.verticalLayout_6.addWidget(self.lineEdit_4)

        self.lineEdit_8 = QLineEdit(self.layoutWidget6)
        self.lineEdit_8.setObjectName(u"lineEdit_8")

        self.verticalLayout_6.addWidget(self.lineEdit_8)


        self.horizontalLayout.addLayout(self.verticalLayout_6)

        self.layoutWidget7 = QWidget(self.groupBox_2)
        self.layoutWidget7.setObjectName(u"layoutWidget7")
        self.layoutWidget7.setGeometry(QRect(517, 230, 121, 66))
        self.verticalLayout_9 = QVBoxLayout(self.layoutWidget7)
        self.verticalLayout_9.setObjectName(u"verticalLayout_9")
        self.verticalLayout_9.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_8 = QHBoxLayout()
        self.horizontalLayout_8.setObjectName(u"horizontalLayout_8")
        self.label_11 = QLabel(self.layoutWidget7)
        self.label_11.setObjectName(u"label_11")

        self.horizontalLayout_8.addWidget(self.label_11)

        self.lineEdit_ccdIdx = QLineEdit(self.layoutWidget7)
        self.lineEdit_ccdIdx.setObjectName(u"lineEdit_ccdIdx")

        self.horizontalLayout_8.addWidget(self.lineEdit_ccdIdx)


        self.verticalLayout_9.addLayout(self.horizontalLayout_8)

        self.btn_processPTC = QPushButton(self.layoutWidget7)
        self.btn_processPTC.setObjectName(u"btn_processPTC")

        self.verticalLayout_9.addWidget(self.btn_processPTC)

        self.layoutWidget8 = QWidget(self.groupBox_2)
        self.layoutWidget8.setObjectName(u"layoutWidget8")
        self.layoutWidget8.setGeometry(QRect(10, 72, 491, 151))
        self.horizontalLayout_7 = QHBoxLayout(self.layoutWidget8)
        self.horizontalLayout_7.setObjectName(u"horizontalLayout_7")
        self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3 = QVBoxLayout()
        self.verticalLayout_3.setObjectName(u"verticalLayout_3")
        self.label_4 = QLabel(self.layoutWidget8)
        self.label_4.setObjectName(u"label_4")

        self.verticalLayout_3.addWidget(self.label_4)

        self.label_5 = QLabel(self.layoutWidget8)
        self.label_5.setObjectName(u"label_5")

        self.verticalLayout_3.addWidget(self.label_5)

        self.label_8 = QLabel(self.layoutWidget8)
        self.label_8.setObjectName(u"label_8")

        self.verticalLayout_3.addWidget(self.label_8)

        self.label_9 = QLabel(self.layoutWidget8)
        self.label_9.setObjectName(u"label_9")

        self.verticalLayout_3.addWidget(self.label_9)

        self.btn_fileList = QPushButton(self.layoutWidget8)
        self.btn_fileList.setObjectName(u"btn_fileList")

        self.verticalLayout_3.addWidget(self.btn_fileList)


        self.horizontalLayout_7.addLayout(self.verticalLayout_3)

        self.verticalLayout_4 = QVBoxLayout()
        self.verticalLayout_4.setObjectName(u"verticalLayout_4")
        self.lineEdit = QLineEdit(self.layoutWidget8)
        self.lineEdit.setObjectName(u"lineEdit")

        self.verticalLayout_4.addWidget(self.lineEdit)

        self.lineEdit_2 = QLineEdit(self.layoutWidget8)
        self.lineEdit_2.setObjectName(u"lineEdit_2")

        self.verticalLayout_4.addWidget(self.lineEdit_2)

        self.lineEdit_outdir = QLineEdit(self.layoutWidget8)
        self.lineEdit_outdir.setObjectName(u"lineEdit_outdir")

        self.verticalLayout_4.addWidget(self.lineEdit_outdir)

        self.lineEdit_7 = QLineEdit(self.layoutWidget8)
        self.lineEdit_7.setObjectName(u"lineEdit_7")

        self.verticalLayout_4.addWidget(self.lineEdit_7)

        self.lineEdit_10 = QLineEdit(self.layoutWidget8)
        self.lineEdit_10.setObjectName(u"lineEdit_10")

        self.verticalLayout_4.addWidget(self.lineEdit_10)


        self.horizontalLayout_7.addLayout(self.verticalLayout_4)

        self.checkBox_plotPRC = QCheckBox(self.groupBox_2)
        self.checkBox_plotPRC.setObjectName(u"checkBox_plotPRC")
        self.checkBox_plotPRC.setGeometry(QRect(360, 250, 85, 20))
        self.plainTextEdit_logPTC = QPlainTextEdit(self.tab_ptc)
        self.plainTextEdit_logPTC.setObjectName(u"plainTextEdit_logPTC")
        self.plainTextEdit_logPTC.setGeometry(QRect(10, 370, 651, 411))
        self.btn_clearLogPTC = QPushButton(self.tab_ptc)
        self.btn_clearLogPTC.setObjectName(u"btn_clearLogPTC")
        self.btn_clearLogPTC.setGeometry(QRect(580, 790, 80, 21))
        self.tabs.addTab(self.tab_ptc, "")
        self.tab_test = QWidget()
        self.tab_test.setObjectName(u"tab_test")
        self.groupBox = QGroupBox(self.tab_test)
        self.groupBox.setObjectName(u"groupBox")
        self.groupBox.setGeometry(QRect(20, 20, 601, 561))
        self.label_childThreadMsg = QLabel(self.groupBox)
        self.label_childThreadMsg.setObjectName(u"label_childThreadMsg")
        self.label_childThreadMsg.setGeometry(QRect(20, 40, 121, 16))
        self.plainTextEdit_childThreadMsg = QPlainTextEdit(self.groupBox)
        self.plainTextEdit_childThreadMsg.setObjectName(u"plainTextEdit_childThreadMsg")
        self.plainTextEdit_childThreadMsg.setGeometry(QRect(20, 70, 551, 141))
        self.layoutWidget9 = QWidget(self.groupBox)
        self.layoutWidget9.setObjectName(u"layoutWidget9")
        self.layoutWidget9.setGeometry(QRect(10, 520, 581, 33))
        self.horizontalLayout_4 = QHBoxLayout(self.layoutWidget9)
        self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
        self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.label_mainThreadMsg = QLabel(self.layoutWidget9)
        self.label_mainThreadMsg.setObjectName(u"label_mainThreadMsg")

        self.horizontalLayout_4.addWidget(self.label_mainThreadMsg)

        self.lineEdit_mainThreadMsg = QLineEdit(self.layoutWidget9)
        self.lineEdit_mainThreadMsg.setObjectName(u"lineEdit_mainThreadMsg")

        self.horizontalLayout_4.addWidget(self.lineEdit_mainThreadMsg)

        self.btn_testThread = QPushButton(self.layoutWidget9)
        self.btn_testThread.setObjectName(u"btn_testThread")

        self.horizontalLayout_4.addWidget(self.btn_testThread)

        self.tabs.addTab(self.tab_test, "")
        self.groupBox_log = QGroupBox(Widget)
        self.groupBox_log.setObjectName(u"groupBox_log")
        self.groupBox_log.setGeometry(QRect(690, 10, 691, 631))
        self.groupBox_log.setAlignment(Qt.AlignCenter)
        self.mplWidget = MatplotlibWidget(self.groupBox_log)
        self.mplWidget.setObjectName(u"mplWidget")
        self.mplWidget.setGeometry(QRect(10, 20, 671, 571))
        self.layoutWidget10 = QWidget(self.groupBox_log)
        self.layoutWidget10.setObjectName(u"layoutWidget10")
        self.layoutWidget10.setGeometry(QRect(10, 600, 671, 32))
        self.horizontalLayout_5 = QHBoxLayout(self.layoutWidget10)
        self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
        self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.btn_clearPlots = QPushButton(self.layoutWidget10)
        self.btn_clearPlots.setObjectName(u"btn_clearPlots")
        self.btn_clearPlots.setEnabled(True)

        self.horizontalLayout_5.addWidget(self.btn_clearPlots)

        self.horizontalSpacer = QSpacerItem(268, 19, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

        self.horizontalLayout_5.addItem(self.horizontalSpacer)

        self.btn_testPlots = QPushButton(self.layoutWidget10)
        self.btn_testPlots.setObjectName(u"btn_testPlots")

        self.horizontalLayout_5.addWidget(self.btn_testPlots)

        self.groupBox_comput = QGroupBox(Widget)
        self.groupBox_comput.setObjectName(u"groupBox_comput")
        self.groupBox_comput.setGeometry(QRect(690, 650, 691, 141))
        self.layoutWidget11 = QWidget(self.groupBox_comput)
        self.layoutWidget11.setObjectName(u"layoutWidget11")
        self.layoutWidget11.setGeometry(QRect(10, 30, 281, 101))
        self.gridLayout_compute_opt = QGridLayout(self.layoutWidget11)
        self.gridLayout_compute_opt.setObjectName(u"gridLayout_compute_opt")
        self.gridLayout_compute_opt.setContentsMargins(0, 0, 0, 0)
        self.checkBox_Row_OS_Corr_1st = QCheckBox(self.layoutWidget11)
        self.checkBox_Row_OS_Corr_1st.setObjectName(u"checkBox_Row_OS_Corr_1st")
        self.checkBox_Row_OS_Corr_1st.setEnabled(False)

        self.gridLayout_compute_opt.addWidget(self.checkBox_Row_OS_Corr_1st, 1, 1, 1, 1)

        self.checkBox_Row_OS_Corr = QCheckBox(self.layoutWidget11)
        self.checkBox_Row_OS_Corr.setObjectName(u"checkBox_Row_OS_Corr")
        self.checkBox_Row_OS_Corr.setEnabled(False)

        self.gridLayout_compute_opt.addWidget(self.checkBox_Row_OS_Corr, 1, 0, 1, 1)

        self.checkBox_Gain = QCheckBox(self.layoutWidget11)
        self.checkBox_Gain.setObjectName(u"checkBox_Gain")
        self.checkBox_Gain.setEnabled(False)
        self.checkBox_Gain.setLayoutDirection(Qt.LeftToRight)

        self.gridLayout_compute_opt.addWidget(self.checkBox_Gain, 0, 0, 1, 1)

        self.checkBox_5 = QCheckBox(self.layoutWidget11)
        self.checkBox_5.setObjectName(u"checkBox_5")
        self.checkBox_5.setEnabled(False)

        self.gridLayout_compute_opt.addWidget(self.checkBox_5, 0, 1, 1, 1)

        self.checkBox_Col_OS_Corr = QCheckBox(self.layoutWidget11)
        self.checkBox_Col_OS_Corr.setObjectName(u"checkBox_Col_OS_Corr")
        self.checkBox_Col_OS_Corr.setEnabled(False)

        self.gridLayout_compute_opt.addWidget(self.checkBox_Col_OS_Corr, 2, 0, 1, 1)

        self.checkBox_6 = QCheckBox(self.layoutWidget11)
        self.checkBox_6.setObjectName(u"checkBox_6")
        self.checkBox_6.setEnabled(False)

        self.gridLayout_compute_opt.addWidget(self.checkBox_6, 2, 1, 1, 1)

        self.btn_compute = QPushButton(self.groupBox_comput)
        self.btn_compute.setObjectName(u"btn_compute")
        self.btn_compute.setEnabled(False)
        self.btn_compute.setGeometry(QRect(600, 70, 80, 41))
        self.btn_exit = QPushButton(Widget)
        self.btn_exit.setObjectName(u"btn_exit")
        self.btn_exit.setGeometry(QRect(10, 870, 81, 31))
        self.btn_exit.setStyleSheet(u"background-color: rgb(249, 255, 217);\n"
"color: rgb(255, 106, 7)")
        self.layoutWidget12 = QWidget(Widget)
        self.layoutWidget12.setObjectName(u"layoutWidget12")
        self.layoutWidget12.setGeometry(QRect(690, 800, 691, 71))
        self.gridLayout_2 = QGridLayout(self.layoutWidget12)
        self.gridLayout_2.setObjectName(u"gridLayout_2")
        self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3 = QHBoxLayout()
        self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
        self.lineEdit_wkdir = QLineEdit(self.layoutWidget12)
        self.lineEdit_wkdir.setObjectName(u"lineEdit_wkdir")
        self.lineEdit_wkdir.setReadOnly(True)

        self.horizontalLayout_3.addWidget(self.lineEdit_wkdir)

        self.btn_wkdir = QPushButton(self.layoutWidget12)
        self.btn_wkdir.setObjectName(u"btn_wkdir")

        self.horizontalLayout_3.addWidget(self.btn_wkdir)


        self.gridLayout_2.addLayout(self.horizontalLayout_3, 0, 0, 1, 1)

        self.label_3 = QLabel(self.layoutWidget12)
        self.label_3.setObjectName(u"label_3")
        self.label_3.setFont(font)
        self.label_3.setAutoFillBackground(False)
        self.label_3.setStyleSheet(u"background-color: rgb(249, 240, 107);\n"
"color: rgb(224, 27, 36);")
        self.label_3.setTextFormat(Qt.PlainText)
        self.label_3.setAlignment(Qt.AlignCenter)

        self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)


        self.retranslateUi(Widget)

        self.tabs.setCurrentIndex(0)


        QMetaObject.connectSlotsByName(Widget)
    # setupUi

    def retranslateUi(self, Widget):
        Widget.setWindowTitle(QCoreApplication.translate("Widget", u"CCDquick", None))
        self.groupBox_bias.setTitle(QCoreApplication.translate("Widget", u"Select 2 bias", None))
        self.lineEdit_bias1.setText(QCoreApplication.translate("Widget", u"select a bias ...", None))
        self.btn_choose_bias1.setText(QCoreApplication.translate("Widget", u"Choose Bias1", None))
        self.lineEdit_bias2.setText(QCoreApplication.translate("Widget", u"select a bias ...", None))
        self.btn_choose_bias2.setText(QCoreApplication.translate("Widget", u"Choose Bias2", None))
        self.btn_clearBias.setText(QCoreApplication.translate("Widget", u"Clear Bias", None))
        self.checkBox_showCorrectedBias.setText(QCoreApplication.translate("Widget", u"Show Corrected Bias", None))
        self.groupBox_flat.setTitle(QCoreApplication.translate("Widget", u"Select 2 flats", None))
        self.lineEdit_flat1.setText(QCoreApplication.translate("Widget", u"select a flat ...", None))
        self.btn_choose_flat1.setText(QCoreApplication.translate("Widget", u"Choose Flat1", None))
        self.lineEdit_flat2.setText(QCoreApplication.translate("Widget", u"select a flat ...", None))
        self.btn_choose_flat2.setText(QCoreApplication.translate("Widget", u"Choose Flat2", None))
        self.btn_clearFlats.setText(QCoreApplication.translate("Widget", u"Clear Flats", None))
        self.lineEdit_flat2ExpTime.setText(QCoreApplication.translate("Widget", u"1.0", None))
        self.label_2.setText(QCoreApplication.translate("Widget", u"Flat2 TExp(s)", None))
        self.label.setText(QCoreApplication.translate("Widget", u"Flat1 TExp(s)", None))
        self.lineEdit_flat1ExpTime.setText(QCoreApplication.translate("Widget", u"1.0", None))
        self.checkBox_correctExpTime.setText(QCoreApplication.translate("Widget", u"Correct Exptime", None))
        self.checkBox_showCorrectedFlats.setText(QCoreApplication.translate("Widget", u"Show Corrected Flats", None))
        self.checkBox_applyGainCorrection.setText(QCoreApplication.translate("Widget", u"Apply Gain Correction", None))
        self.btn_compare_corrected_flats.setText(QCoreApplication.translate("Widget", u"Compare Flats", None))
        self.checkBox_showFlatRatioFits.setText(QCoreApplication.translate("Widget", u"PopUp flat-ratio fits", None))
        self.checkBox_anchorToZero.setText(QCoreApplication.translate("Widget", u"Anchor to Zero", None))
        self.checkBox_applySelfNorm.setText(QCoreApplication.translate("Widget", u"Apply OS-Norm", None))
        self.checkBox_plotFlatRatio.setText(QCoreApplication.translate("Widget", u"Plot Flat-Ratio", None))
        self.label_ymin.setText(QCoreApplication.translate("Widget", u"ymin", None))
        self.lineEdit_yMin.setText(QCoreApplication.translate("Widget", u"-0.01", None))
        self.lineEdit_yMax.setText(QCoreApplication.translate("Widget", u"0.01", None))
        self.label_ymax.setText(QCoreApplication.translate("Widget", u"ymax", None))
        self.btn_clearLog.setText(QCoreApplication.translate("Widget", u"Clear Log", None))
        self.btn_estimateGain.setText(QCoreApplication.translate("Widget", u"Estimate Gain", None))
        self.checkBox_useColPreScan.setText(QCoreApplication.translate("Widget", u"useColPreScan", None))
        self.tabs.setTabText(self.tabs.indexOf(self.tab_flat), QCoreApplication.translate("Widget", u"Flat", None))
        self.groupBox_2.setTitle(QCoreApplication.translate("Widget", u"PTC data", None))
        self.label_10.setText(QCoreApplication.translate("Widget", u"NOTE: all outputs are stored in workDir!!", None))
        self.pushButton.setText(QCoreApplication.translate("Widget", u"Data Path", None))
        self.checkBox_subtractBias.setText(QCoreApplication.translate("Widget", u"Subtract Bias", None))
        self.checkBox_applyFlatCorrection.setText(QCoreApplication.translate("Widget", u"Apply Flat Correction", None))
        self.checkBox_sigmaClip.setText(QCoreApplication.translate("Widget", u"SigmaClip(4)", None))
        self.checkBox_exportPTCFigs.setText(QCoreApplication.translate("Widget", u"Export PTC Figures", None))
        self.checkBox_exportPRCFigs.setText(QCoreApplication.translate("Widget", u"Export PRC Figures", None))
        self.checkBox_plotGain.setText(QCoreApplication.translate("Widget", u"Plot Gain", None))
        self.label_6.setText(QCoreApplication.translate("Widget", u"Bias Num", None))
        self.label_7.setText(QCoreApplication.translate("Widget", u"Exp Num", None))
        self.label_12.setText(QCoreApplication.translate("Widget", u"PTC Num", None))
        self.label_11.setText(QCoreApplication.translate("Widget", u"CCD IDX", None))
        self.lineEdit_ccdIdx.setText(QCoreApplication.translate("Widget", u"00", None))
        self.btn_processPTC.setText(QCoreApplication.translate("Widget", u"Process PTC", None))
        self.label_4.setText(QCoreApplication.translate("Widget", u"Bias_Basename", None))
        self.label_5.setText(QCoreApplication.translate("Widget", u"PTC_Basename", None))
        self.label_8.setText(QCoreApplication.translate("Widget", u"Output Dir", None))
        self.label_9.setText(QCoreApplication.translate("Widget", u"OutBasename", None))
        self.btn_fileList.setText(QCoreApplication.translate("Widget", u"File List", None))
        self.checkBox_plotPRC.setText(QCoreApplication.translate("Widget", u"Plot PRC", None))
        self.btn_clearLogPTC.setText(QCoreApplication.translate("Widget", u"Clear Log", None))
        self.tabs.setTabText(self.tabs.indexOf(self.tab_ptc), QCoreApplication.translate("Widget", u"PTC", None))
        self.groupBox.setTitle(QCoreApplication.translate("Widget", u"GroupBox", None))
        self.label_childThreadMsg.setText(QCoreApplication.translate("Widget", u"Child Thread Msg", None))
        self.label_mainThreadMsg.setText(QCoreApplication.translate("Widget", u"Main Threading msg:", None))
        self.btn_testThread.setText(QCoreApplication.translate("Widget", u"Test MThreads", None))
        self.tabs.setTabText(self.tabs.indexOf(self.tab_test), QCoreApplication.translate("Widget", u"Test", None))
        self.groupBox_log.setTitle(QCoreApplication.translate("Widget", u"Plots", None))
        self.btn_clearPlots.setText(QCoreApplication.translate("Widget", u"ClearPlots", None))
        self.btn_testPlots.setText(QCoreApplication.translate("Widget", u"TestPlots", None))
        self.groupBox_comput.setTitle(QCoreApplication.translate("Widget", u"Task Configuration", None))
        self.checkBox_Row_OS_Corr_1st.setText(QCoreApplication.translate("Widget", u"Row_OS_Corr_1st", None))
        self.checkBox_Row_OS_Corr.setText(QCoreApplication.translate("Widget", u"Row_OS_Corr", None))
        self.checkBox_Gain.setText(QCoreApplication.translate("Widget", u"Gain", None))
        self.checkBox_5.setText(QCoreApplication.translate("Widget", u"NOT USED", None))
        self.checkBox_Col_OS_Corr.setText(QCoreApplication.translate("Widget", u"Col_OS_Corr", None))
        self.checkBox_6.setText(QCoreApplication.translate("Widget", u"NOT USED", None))
        self.btn_compute.setText(QCoreApplication.translate("Widget", u"Compute", None))
        self.btn_exit.setText(QCoreApplication.translate("Widget", u"Exit", None))
        self.btn_wkdir.setText(QCoreApplication.translate("Widget", u"workDir", None))
        self.label_3.setText(QCoreApplication.translate("Widget", u"Working directory MUST be chosen before doing analysis!", None))
    # retranslateUi

